package com.pig4cloud.pigx.system.mapstruct;

import com.pig4cloud.pigx.system.dto.MobileFeedbackDTO;
import com.pig4cloud.pigx.system.entity.Feedback;
import com.pig4cloud.pigx.system.vo.MobileFeedbackVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Description: 意见反馈
 * @Date: 2022/10/13 10:04
 */
@Mapper
public interface FeedbackStruct {

	FeedbackStruct INSTANCE = Mappers.getMapper(FeedbackStruct.class);

	/** 反馈意见 转 移动端VO */
	MobileFeedbackVO feedback2MobileVO(Feedback feedback);

	/** 反馈意见 转 移动端VO */
	List<MobileFeedbackVO> feedback2MobileVO(List<Feedback> feedbackList);

	/** 移动端DTO 转 反馈意见 */
	Feedback mobileDTO2Feedback(MobileFeedbackDTO mobileFeedbackDTO);



}
